gdk_surface_is_viewable
gdk_surface_is_input_only
gdk_surface_get_state
-gdk_surface_withdraw
gdk_surface_iconify
gdk_surface_deiconify
gdk_surface_stick
gdk_surface_invalidate_in_parent (surface);
}
-/**
- * gdk_surface_withdraw:
- * @surface: a toplevel #GdkSurface
- *
- * Withdraws a surface (unmaps it and asks the surface manager to forget about it).
- * This function is not really useful as gdk_surface_hide() automatically
- * withdraws toplevel surfaces before hiding them.
- **/
-void
-gdk_surface_withdraw (GdkSurface *surface)
-{
- GdkSurfaceImplClass *impl_class;
- GdkGLContext *current_context;
-
- g_return_if_fail (GDK_IS_SURFACE (surface));
-
- if (surface->destroyed)
- return;
-
- if (gdk_surface_has_impl (surface))
- {
- impl_class = GDK_SURFACE_IMPL_GET_CLASS (surface->impl);
- impl_class->withdraw (surface);
-
- current_context = gdk_gl_context_get_current ();
- if (current_context != NULL && gdk_gl_context_get_surface (current_context) == surface)
- gdk_gl_context_clear_current ();
-
- recompute_visible_regions (surface, FALSE);
- }
-}
-
static void
gdk_surface_move_resize_toplevel (GdkSurface *surface,
gboolean with_move,
GDK_AVAILABLE_IN_ALL
void gdk_surface_hide (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
-void gdk_surface_withdraw (GdkSurface *surface);
-GDK_AVAILABLE_IN_ALL
void gdk_surface_show_unraised (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
void gdk_surface_move (GdkSurface *surface,
gdk_x11_surface_apply_fullscreen_mode (surface);
}
+static void
+gdk_surface_x11_withdraw (GdkSurface *surface)
+{
+ if (!surface->destroyed)
+ {
+ if (GDK_SURFACE_IS_MAPPED (surface))
+ gdk_synthesize_surface_state (surface,
+ 0,
+ GDK_SURFACE_STATE_WITHDRAWN);
+
+ g_assert (!GDK_SURFACE_IS_MAPPED (surface));
+
+ XWithdrawWindow (GDK_SURFACE_XDISPLAY (surface),
+ GDK_SURFACE_XID (surface), 0);
+ }
+}
+
static void
gdk_surface_x11_hide (GdkSurface *surface)
{
{
case GDK_SURFACE_TOPLEVEL:
case GDK_SURFACE_TEMP: /* ? */
- gdk_surface_withdraw (surface);
+ gdk_surface_x11_withdraw (surface);
return;
case GDK_SURFACE_CHILD:
GDK_SURFACE_XID (surface));
}
-static void
-gdk_surface_x11_withdraw (GdkSurface *surface)
-{
- if (!surface->destroyed)
- {
- if (GDK_SURFACE_IS_MAPPED (surface))
- gdk_synthesize_surface_state (surface,
- 0,
- GDK_SURFACE_STATE_WITHDRAWN);
-
- g_assert (!GDK_SURFACE_IS_MAPPED (surface));
-
- XWithdrawWindow (GDK_SURFACE_XDISPLAY (surface),
- GDK_SURFACE_XID (surface), 0);
- }
-}
-
static inline void
surface_x11_move (GdkSurface *surface,
gint x,
surface = _gtk_widget_get_surface (widget);
GTK_WIDGET_CLASS (gtk_window_parent_class)->unmap (widget);
- gdk_surface_withdraw (surface);
+ gdk_surface_hide (surface);
while (priv->configure_request_count > 0)
{